using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

using Krypton;
using Krypton.Lights;
using SharedLib;

namespace Game
{

    public class GameClass : Microsoft.Xna.Framework.Game
    {
        GraphicsDeviceManager graphics;
        
      //  Krypton.KryptonEngine Krypton;
        
        //SharedLib.Network.Client.ClientUser clientUser;

        SharedLib.Network.Client.ClientMain clientMain;
        FrameRateCounter FPS;
        public GameClass()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            IsMouseVisible = true;
            
          //  Krypton = new KryptonEngine(this, "Effects/KryptonEffect");
            
        }

   
        protected override void Initialize()
        {
            //clientUser = new SharedLib.Network.Client.ClientUser(graphics, Content, Krypton);
            clientMain = new SharedLib.Network.Client.ClientMain(graphics, this);
            
            base.Initialize();
        }

  


        protected override void LoadContent()
        {
            FPS = new FrameRateCounter(this, Content.Load<SpriteFont>("UI/UI"));
            clientMain.LoadContent();
         }

        protected override void Update(GameTime gameTime)
        {
            FPS.Update(gameTime);
            SharedLib.Helpers.Input.Update(gameTime);
           // clientUser.Update(gameTime);
            base.Update(gameTime);
        }

        protected override void Draw(GameTime gameTime)
        {
          //  clientUser.Draw(gameTime);
            

            base.Draw(gameTime);
           FPS.Draw(gameTime);
        }
        

        
    }

}
